<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:59:"D:\phpStudy\WWW\tp5/application/admin\view\wanfa\index.html";i:1481290652;s:61:"D:\phpStudy\WWW\tp5/application/admin\view\Public\header.html";i:1481200823;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
		<title>后台管理</title>

		<meta name="description" content="后台管理" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!-- basic styles -->

		<link href="/public/common/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="/public/common/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="/public/common/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- ace styles -->

		<link rel="stylesheet" href="/public/common/css/ace.min.css" />
		<link rel="stylesheet" href="/public/common/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="/public/common/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="/public/common/css/ace-ie.min.css" />
		<![endif]-->

		<!-- ace settings handler -->

		<script src="/public/common/js/ace-extra.min.js"></script>

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<script src="/public/common/js/html5shiv.js"></script>
		<script src="/public/common/js/respond.min.js"></script>
		<![endif]-->
		
		<!-- javascript footer -->
				<!--[if !IE]> -->
		<script type="text/javascript">
			window.jQuery || document.write("<script src='/public/common/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>
		<!-- <![endif]-->

		<!--[if IE]>
		<script type="text/javascript">
		 	window.jQuery || document.write("<script src='/public/common/style/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
		</script>
		<![endif]-->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='/public/common/style/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="/public/common/js/bootstrap.min.js"></script>
		<script src="/public/common/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<!--[if lte IE 8]>
		  <script src="/public/common/js/excanvas.min.js"></script>
		<![endif]-->

		<script src="/public/common/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="/public/common/js/jquery.ui.touch-punch.min.js"></script>
		<script src="/public/common/js/jquery.slimscroll.min.js"></script>
		<script src="/public/common/js/jquery.easy-pie-chart.min.js"></script>
		<script src="/public/common/js/jquery.sparkline.min.js"></script>
		<script src="/public/common/js/flot/jquery.flot.min.js"></script>
		<script src="/public/common/js/flot/jquery.flot.pie.min.js"></script>
		<script src="/public/common/js/flot/jquery.flot.resize.min.js"></script>

		<!-- ace scripts -->

		<script src="/public/common/js/ace-elements.min.js"></script>
		<script src="/public/common/js/ace.min.js"></script>
	</head>
	<body>


<div class="col-sm-12 widget-container-span">
    <div class="widget-box transparent">
        <div class="widget-header">
            <div class="widget-toolbar no-border">
                <ul class="nav nav-tabs" id="myTab">
                    <li class="active"><a data-toggle="tab" href="#home1">奖励设置</a></li>
                    <!--<li><a data-toggle="tab" href="#home2">添加/修改商品</a></li>-->
                    <!--<li><a data-toggle="tab" href="#home3">商品分销佣金</a></li>-->
                </ul>
            </div>
        </div>

        <div class="widget-body">
            <div class="widget-main padding-12 no-padding-left no-padding-right">
                <div class="tab-content padding-4">
                    <div id="home1" class="tab-pane in active">
                        <div class="row">
                            <div class="col-xs-12 no-padding-right">
                                <div class="table-responsive">
                                    <form class="form-horizontal" role="form" action="/Admin/Wanfa/jlsave" method="post">
                                    <table id="sample-table-1"
                                           class="table table-striped table-bordered table-hover">
                                        <thead>
                                        <tr>
                                            <th class="center"><label>
                                                    启用</span>
                                            </label></th>
                                            <th style="display: none">id</th>
                                            <th>开数字</th>
                                            <th>奖励倍数</th>


                                        </tr>
                                        </thead>

                                        <tbody>
                                        <?php if(is_array($result) || $result instanceof \think\Collection): $i = 0; $__LIST__ = $result;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$result): $mod = ($i % 2 );++$i;?>

                                                <td class="center"><label>
                                                    <?php if($result['state'] == 0): ?>
                                                    <input name="state<?php echo $result['id']; ?>" id="state<?php echo $result['id']; ?>" type="checkbox" class="ace" value="0"> <span class="lbl"></span>
                                                    <?php else: ?>
                                                    <input name="state<?php echo $result['id']; ?>" id="state<?php echo $result['id']; ?>" type="checkbox" class="ace" checked="checked" value="1"> <span class="lbl"></span>
                                                    <?php endif; ?>

                                                </label></td>
                                                <td style="display: none"><input name="id<?php echo $result['id']; ?>" id="id<?php echo $result['id']; ?>" type="text" value="<?php echo $result['id']; ?>"></input></td>
                                                <td><input name="number<?php echo $result['id']; ?>" id="number<?php echo $result['id']; ?>" type="text" value="<?php echo $result['number']; ?>"></input></td>
                                                <td><input name="multiple<?php echo $result['id']; ?>" id="multiple<?php echo $result['id']; ?>" type="text" value="<?php echo $result['multiple']; ?>"></input></td>
                                            </tr>
                                        <?php endforeach; endif; else: echo "" ;endif; ?>
                                        </tbody>
                                    </table>
                                    <div class="clearfix form-actions">
                                        <div class="col-md-offset-3 col-md-9">
                                            <button class="btn btn-info" type="submit">
                                                <i class="icon-ok bigger-110"></i> 提交
                                            </button>

                                            &nbsp; &nbsp; &nbsp;
                                            <button class="btn" type="reset">
                                                <i class="icon-undo bigger-110"></i> 取消
                                            </button>
                                        </div>
                                    </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>